﻿//PlazaColumns.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Plaza.Metadata
{
	using System;

	/// <summary>
	/// Базовый класс, содержащий 3 специальные Plaza колонки: replID, replRev, replAct.
	/// </summary>
	public abstract class PlazaColumns
	{
		internal PlazaColumns(string tableId)
		{
			if (tableId == null)
				throw new ArgumentNullException("tableId");

			TableId = tableId;
			ReplId = new PlazaColumn(tableId, "replID", typeof(long));
			ReplRev = new PlazaColumn(tableId, "replRev", typeof(long));
			ReplAct = new PlazaColumn(tableId, "replAct", typeof(long));
		}

		internal string TableId { get; private set; }

		/// <summary>
		/// Служебное поле подсистемы репликации.
		/// </summary>
		public readonly PlazaColumn ReplId;

		/// <summary>
		/// Служебное поле подсистемы репликации.
		/// </summary>
		public readonly PlazaColumn ReplRev;

		/// <summary>
		/// Служебное поле подсистемы репликации.
		/// </summary>
		public readonly PlazaColumn ReplAct;
	}
}